package edu.mtu.citizenscience.streamapplication.activity.main;

import android.view.View;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;

public class CheckOnItemSelectedListener  implements OnCheckedChangeListener {

	
	private View v;
	
  public void loadView(View view){
	  v = view;
  }

@Override
public void onCheckedChanged(CompoundButton arg0, boolean isChecked) {
	if(isChecked){
		v.setEnabled(true);
	}
	else{
		v.setEnabled(false);
	}
}
 
	
}
